package com.kds.changzhou.message.outboud;

import com.kds.changzhou.utility.TemplateService;
import freemarker.template.TemplateException;

import java.io.IOException;

/**
 * @author 孔德嵩
 */
public abstract class AbstractOutBoundMessage {

    protected byte[] message;

    protected TemplateService templateService;

    protected Object data;

    public AbstractOutBoundMessage(TemplateService templateService) {
        this.templateService = templateService;
    }

    public byte[] getMessage() {

        return this.message;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public abstract void loadData() throws TemplateException, IOException;
}
